﻿@model equinoxWeb.Models.Cliente
@{
    ViewBag.Title = "Registro club";
    Layout = (ViewBag.esCliente != null && ViewBag.esCliente ? "~/Views/Shared/_ClienteLayout.cshtml" : "~/Views/Shared/_Layout.cshtml");
}
@using equinoxWeb.Models;

<script type='text/javascript' src="/Scripts/club.js"></script>
<!-- content -->
<form class="form-horizontal" name="createForm" method="post">
    <fieldset>
        <legend>Registrar clubes</legend>
    </fieldset>
    <input type="hidden" value="@ViewBag.idCliente" name="idCliente" />
    <table id="tablaClub" class="table table-hover">
        <tr>
            <th>Nombre</th>
            <th>Direccion</th>
        </tr>
        @foreach (Club club in @ViewBag.clubResults)
        {
            <tr>
                <td>
                    <textarea class="form-control reset" name="nombre" id="nombre">@club.Nombre</textarea></td>
                <td>
                    <textarea class="form-control reset" maxlength="150" name="direccion" id="direccion">@club.Direccion</textarea></td>
                <td>
                    <a style="vertical-align: top" href="#" onclick="javascript:borrarFila(this,1)">
                        <span title="Borrar fila" alt="Borrar fila" style="vertical-align: central; line-height: 100%; display: none" class="glyphicon glyphicon-remove"></span>
                    </a>
                </td>
            </tr>
        }
    </table>
    <a style="vertical-align: top" class="linkColumn" href="javascript:nuevaFila()">
        <span style="vertical-align: central; line-height: 100%;" class="glyphicon glyphicon-plus-sign"></span>
        <span style="vertical-align: central; line-height: 100%;">Nueva fila</span>
    </a>
    <br />

    <div class="form-group">
        <label class="col-md-4 col-sm-6 control-label"></label>
        <div class="col-md-3 col-sm-6">
        </div>
    </div>
    <div class="form-group">
        <label class="col-md-4 col-sm-6 control-label"></label>
        <div class="col-md-3 col-sm-6">
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-3 col-sm-6">
            <button type="button" class="btn btn-large btn-primary" onclick="javascript:RegistrarClub(document.createForm)">Registrar</button>&nbsp;
            <button type="button" class="btn btn-large" onclick="javascript:history.back();">Atras</button>
        </div>
    </div>

</form>
<!-- / content -->
